package com.sqx.modules.trendsComment.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.trendsComment.entity.TrendsComment;
import com.sqx.modules.trendsComment.vo.TrendsCommentVo;

/**
 * 动态评论 服务类
 * @author wuChang
 * @since 2023-09-26
 */

public interface ITrendsCommentService extends IService<TrendsComment> {
    /**
     * 新增或修改动态评论
     */
    Result saveTrendsComment (TrendsComment trendsComment);


    IPage<TrendsCommentVo> getCommentList(Integer page, Integer limit, Long byUserId, TrendsComment trendsComment);

    IPage<TrendsCommentVo> getUnreadCommentList(Integer page, Integer limit, Long userId);

    /**
     * 回复动态评论
     */
    Result replyTrendsComment (TrendsComment trendsComment);

    Result deleteCommentById(Long commentId,Long userId);

    IPage<TrendsCommentVo> getAdminCommentList(Integer page, Integer limit, TrendsComment trendsComment);

    IPage<TrendsCommentVo> getAppCommentList(Integer page, Integer limit, Long byUserId, TrendsComment trendsComment);
}
